<?php
require_once('Kbs/Model/Mapper/Abstract.php');

class Kbs_Model_Mapper_Category_Detail extends Kbs_Model_Mapper_Abstract
{
    protected $_tableClassName = 'Kbs_Model_Table_Category_Detail';

    protected $_dataMapper = array(
        'detailId'          => 'detail_id',
        'detailCategoryId'  => 'detail_category_id',
        'detailLocaleId'    => 'detail_locale_id',
        'detailTitle'       => 'detail_title',
    );

    public function setData(Kbs_Model_Business_Abstract $businessObj, Zend_Db_Table_Row $row)
    {
        $businessObj->setDetailId($row->detail_id)
                    ->setDetailCategoryId($row->detail_category_id)
                    ->setDetailLocaleId($row->detail_locale_id)
                    ->setDetailTitle($row->detail_title);
    }

}